<#-- @ftlvariable name="entity" type="com.xci.edu.core.entity.ExamPre" -->
<#include "/sys/_layout.ftl">
<!doctype html>
<html>
<head>
    <@pageHeader/>
</head>
<body>
<@pageLoading/>
<div class="jxpanel winpanel" data-fit="true">
    <form id="editform" class="jxform" method="post"
          action="${saveUrl("/background/eduStudent/setExamProUpdate")}">
        <input name="ids" value="${ids}" type="hidden">
        <input name="studentId" value="1234" type="hidden">
        <input name="studentName" value="默认" type="hidden">
        <input class="hidden" name="status" checked type="checkbox" value="1" data-unchecked-value="0"/>
        <table class="table jxtable-form">
            <tr>
                <th>考试开始时间</th>
                <td>
                    <div class='input-group date jxdatetime'>
                        <input class="form-control" id="examStartDate" name="examStartDate"
                               value="${entity.examStartDate}"
                               data-validate="required: [true,'请选择考试开始时间']"
                               autocomplete="off">
                        <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                        </span>
                    </div> </td>
            </tr>
            <tr>
                <th>考试结束时间</th>
                <td>
                    <div class='input-group date jxdatetime'>
                        <input class="form-control" id="examEndDate" name="examEndDate"
                               value="${entity.examEndDate}"
                               data-validate="{required: [true,'请选择考试结束时间'],compareEqualDate:'#examStartDate'}"
                               autocomplete="off">
                        <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                        </span>
                    </div>
                </td>
            </tr>
            <tr>
                <th>试卷名称</th>
                <td>
                    <select class="form-control jxselect" name="paperId" data-text-field="paperName" data-validate="required: [true,'请选择试卷']"
                            data-allow-clear="true">
                        <option></option>
                        <@eduPaperSelectOption selectedValue=entity.paperName eduCategoryId="${categoryId}" ></@eduPaperSelectOption>
                    </select>
                </td>
            </tr>
            <tr>
                <th>可考次数</th>
                <td>
                    <input class="form-control jxnumber" id="dayMaxPeriod" name="usableCount" type="usableCount" maxlength="9"
                           data-validate="required: [true,'请输入可考次数']"
                           max="99" data-max="99" data-min="0"
                           data-decimals="0" data-step="1" value="${usableCount}" autocomplete="off"/>

                </td>
            </tr>
            <tr>
                <th>预约类型</th>
                <td>
                    <select class="form-control jxselect" id="preCategory" name="preCategory" data-text-field="preCategoryName" data-validate="required: [true,'请选择预约类型']" autocomplete="off">
                        <@preCategoryOptions selectedValue=entity.preCategory/>
                    </select>
                </td>
            </tr>
            <tr>
                <th>备注</th>
                <td>
                    <textarea class="form-control" name="remark" maxlength="500" rows="3" style="resize: none">${entity.remark}</textarea>
                </td>
            </tr>
        </table>
    </form>
    <div class="panel-footer text-right">
        <@editFormDialogCommand/>
    </div>
</div>
<@editFormPageFooter/>
</body>
</html>
